package net.tbao.product.feign;

import net.tbao.common.to.es.SkuEsModel;
import net.tbao.common.utils.R;
import net.tbao.product.feign.fallback.ProtectFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "taobao-searsh",fallback = ProtectFeignServiceFallBack.class)
public interface SearchFeignService {

    @PostMapping("/search/save/product")
    R productStstusUp(@RequestBody List<SkuEsModel> esModels);
}
